<?php 
class User_model extends CI_Model{
    
    public function get_users($cond){
        
        $this->db->where($cond);
        return $this->db->get('users');
    
    }
     public function add_user($data){
        $this->db->insert('users',$data);
        return $this->db->insert_id();
        
    }
}
?>